import tensorflow as tf
from tensorflow.keras import datasets

# numpy 数据
(x, y), (x_test, y_test) = datasets.mnist.load_data()
print(x.shape)
print(y.shape)
print(x_test.shape)
print(y_test.shape)

print(x.min())
print(x.max())
print(x.mean())

print(y.min())
print(y.max())
print(y.mean())

y_onehot = tf.one_hot(y, depth=10)
print(y_onehot.shape)
print(y_onehot[:10])
print(y[:10])
